package com.xzlf.service.impl;

import com.xzlf.feign.FeignService;
import com.xzlf.pojo.User;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;

@Service
public class FeignServiceImpl implements FeignService {
    @Override
    public List<String> testFeign() {
        return Arrays.asList("Feign 托底数据");
    }

    @Override
    public User getMultiParams(Integer id, String name) {
        User user = new User();
        user.setId(id);
        user.setUsername("托底数据Get");
        return user;
    }

    @Override
    public User postMultiParams(Integer id, String name) {
        User user = new User();
        user.setId(id);
        user.setUsername("托底数据post");
        return user;
    }

    @Override
    public User postObjectParam(User pojo) {
        pojo.setUsername("托底数据postBody");
        return pojo;
    }
}
